<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>业务部门列表</title>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
</head>
<body>
 <ol class="breadcrumb">
 <li><a href="home_innerCentre.action">首页</a></li>
  <li class="active">投诉处理</li>
</ol>

  
 <div class="container-fluid">
<table class="table table-striped table-bordered">
   <thead>
      <tr class="success">
        <td>投诉描述</td>
		<td>公司名</td>
		<td>处理状态</td>
		<td>相关操作</td>
      </tr>
   </thead>
   <tbody>
    <s:iterator value="recordList">
		<tr>
			<td>${complain.complaint}</td>
			<td>${complain.department.name}</td>
			<td>
				<s:if test="progress==0">
				待处理
				</s:if>
				<s:if test="progress==1">
				处理中
				</s:if>
				<s:if test="progress==2">
				已处理
				</s:if>
			</td>
			<td>
			   <s:a action="complain_showdetail?id=%{complain.id}&departmentId=%{complain.department.id}">详情&推送</s:a>
			   <s:a action="message_del?id=%{id}" onclick="return confirmAct();">删除</s:a>
			   <s:a action="department_sendMailUI?id=%{complain.department.id}">邮件发送</s:a>
			   <%-- <s:a action="message_handle?id=%{id}">处理</s:a> --%>
			</td>
		</tr>
	</s:iterator>
   </tbody>
</table>

<%--分页信息 --%>

<%@include file="/WEB-INF/jsp/public/pageView.jspf"%>
<form id="pageCondition" action="message_deplist.action"></form>

</div>
</body>
<script type="text/javascript">
  		$(function(){
  		
  		$('#departmentsubmit').click(function(){
  				$('#depatrmentForm').submit();
  	  		});
  		});
  		function confirmAct(){  
         if(confirm('确定要删除此投诉消息吗?')){ 
        return true; 
    } 
    return false; 
} 
  		
 </script>
</html>